package de.mhus.lib.mandala.tag;

import de.mhus.lib.mandala.Response;
import de.mhus.lib.mandala.functions.FunctionCall;

public class ClickAction extends TagBindData {

	private FunctionCall clickAction;

	public ClickAction(FunctionCall clickAction) {
		this.clickAction = clickAction;
	}

	@Override
	public void doRender(Response out, String name, String type) {
		out.print("click:");
		getClickAction().doRender(out.getWindow(), out);
	}

	public FunctionCall getClickAction() {
		return clickAction;
	}

	public void setClickAction(FunctionCall clickAction) {
		this.clickAction = clickAction;
	}

}
